/*
 * Copyright 2025 The JA-SIG Collaborative. All rights reserved.
 * distributed with this file and available online at
 */
package com.lap.auth.adapter.driving.persistence.region;

import com.lap.auth.adapter.driving.persistence.region.po.RegionPo;
import com.lap.auth.domain.region.Region;
import java.util.List;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

@Mapper(componentModel = "spring")
public interface RegionConverter {

  @Mapping(target = "event", ignore = true)
  Region toDomain(RegionPo regionPo);

  List<Region> toDomains(List<RegionPo> list);

  RegionPo toPo(Region region);

  List<RegionPo> toPoList(List<Region> list);
}
